home *** CD-ROM | disk | FTP | other *** search
- nowshooting = eval("_root.ball" add _root.totalballs);
- setProperty(nowshooting, _Y, getProperty(nowshooting, _Y) - 10 + _root.gamelevel / 3);
- _root.ontheair = 10;
- if(getProperty(nowshooting, _Y) < getProperty(_root.roofball, _Y) + 25)
- {
- setProperty(nowshooting, _Y, getProperty(_root.roofball, _Y));
- gotoAndPlay(10);
- }
- shoottest = 1;
- while(shoottest < _root.totalballs)
- {
- nowtestingball = "_root.ball" add shoottest;
- if(nowshooting.hitTest(nowtestingball))
- {
- setProperty(nowshooting, _Y, getProperty(nowtestingball, _Y) + 25);
- gotoAndPlay(10);
- }
- play();
- shoottest++;
- }
-